package org.example.beans;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@PropertySource(value="classpath:/config.properties", encoding = "utf-8")
@Component
public class User {
    @Value("${user.id}")
    private Integer id;
    @Value("${user.nickname}")
    private String name;
    @Value("${user.interests}")
    private List<String> interests;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getInterests() {
        return interests;
    }

    public void setInterests(List<String> interests) {
        this.interests = interests;
    }
}
